package com.qingneng.budget.service.sdk.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.qingneng.budget.dao.IDemoDao;
import com.qingneng.budget.service.sdk.IDemo;

class DemoImpl implements IDemo{
	
	public IDemoDao demoDao = null;



	public IDemoDao getDemoDao() {
		return demoDao;
	}



	public void setDemoDao(IDemoDao demoDao) {
		this.demoDao = demoDao;
	}



	public Map loadJson() throws Exception {
		Map dataMap =  new HashMap();
		List queryContractInfo = demoDao.queryDemo();
		Integer queryCounts = demoDao.queryCounts();
		dataMap.put("rows", queryContractInfo);
		dataMap.put("total", queryCounts);
		return dataMap;
	}
	
}
